home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / tex / mf / inputs / dc / dxrleast.mf < prev    next >
Text File  |  1994-04-12  |  52KB  |  1,162 lines

  1. % This is DXRLEAST.MF in text format, as of March 24, 1992
  2. %
  3. % DC fonts Version 1.1 (prerelease of EC fonts)
  4. %
  5. %          [ heavily borrowed from the Computer Modern Roman family of
  6. %            fonts by D. E. Knuth ]
  7. %
  8. % Content:
  9. %
  10. %  accented lowercase letters ("easten part")
  11. %
  12. %   oct"236", oct"240" .. oct"274"
  13. %
  14. %       oct"236"    d  with bar
  15. %
  16. %       oct"240"    a  with breve
  17. %       oct"241"    a  with ogonek
  18. %       oct"242"    c  with acute
  19. %       oct"243"    c  with hacek
  20. %       oct"244"    d  with comma
  21. %       oct"245"    e  with hacek
  22. %       oct"246"    e  with ogonek
  23. %       oct"247"    g  with breve
  24. %
  25. %       oct"250"    l  with acute
  26. %       oct"251"    l  with komma
  27. %       oct"252"    l  with (polnisches L)
  28. %       oct"253"    n  with acute
  29. %       oct"254"    n  with hacek
  30. %       oct"255"    the letter eng
  31. %   x   oct"256"    o  with ungarian umlauts
  32. %       oct"257"    r  with acute
  33. %
  34. %       oct"260"    r  with hacek
  35. %       oct"261"    s  with acute
  36. %       oct"262"    s  with hacek
  37. %       oct"263"    s  with cedille
  38. %       oct"264"    t  with comma
  39. %       oct"265"    t  with cedille
  40. %   x   oct"266"    u  with hungarian umlauts
  41. %       oct"267"    u  with circ
  42. %
  43. %       oct"270"    y with  umlauts
  44. %       oct"271"    z with  acute
  45. %       oct"272"    z with  hacek
  46. %       oct"273"    z with  dot
  47. %       oct"274"    ij
  48. %
  49. %
  50.  
  51. dcchar "The letter bar d";
  52. beginchar(oct"236",10u#+serif_fit#,asc_height#,0);
  53. italcorr asc_height#*slant-serif_fit#+.5stem#-2u#;
  54. adjust_fit(0,serif_fit#);
  55. pickup tiny.nib; pos1(stem',0); pos2(stem,0);
  56. pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2;
  57. rt x1r=hround(w-2.5u+.5stem'); top y1=h;
  58. numeric edge; edge=lft x2l;
  59. pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0);
  60. pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360);
  61. lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),1/3[lft x2,edge]);
  62. y3=1/8[bar_height,x_height];
  63. x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo if monospace: -hair fi;
  64. lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height if monospace: -.5hair fi ;
  65. x6l=x4l-.2u; bot y6r=-oo;
  66. x7=x3; y7=min(y3,y6+y4-y3+.6vair);
  67. (x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]);
  68. (x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]);
  69. filldraw stroke z3e{up}...pulled_arc.e(4,5)
  70.  & pulled_arc.e(5,6)...{up}z7e; % bowl
  71. y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l));
  72. pickup tiny.nib; bot y2=if serifs:-min(oo,serif_drop) else: 0 fi;
  73. filldraw stroke z1e--z0'e--z0e--z2e;  % stem
  74. if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop);  % upper serif
  75.  sloped_serif.r(2,0,b,1/3,jut,min(oo,serif_drop)); fi  % lower serif
  76. %
  77.   pos8(bar,90); pos9(bar,90);
  78.   x8=.5[x4,x5];
  79.   if serifs: x9=x2r+jut; else: x9=w; fi
  80.   if serifs: y8=y9=.5[y.a2-.5slab,y4+.5vair];
  81.   else: y8=y9=.5[x_height,asc_height-serif_drop]; fi
  82.   filldraw stroke z8e--z9e;
  83. penlabels(0,1,2,3,4,5,6,7,8,9); endchar;
  84.  
  85.  
  86.  
  87. %%%%%%
  88.  
  89.  
  90. dcchar "The letter breve a";
  91. beginchar(oct"240",9u#,
  92.       max(x_height#+acc_height#,min(asc_height#,2x_height#)),0);
  93. bh#:=min(bar_height#,1.14x_height#-bar_height#); define_pixels(bh);
  94. italcorr 1/3[bh#,x_height#]*slant+.5stem#-serif_fit#-2u#;
  95. adjust_fit(0,serif_fit# if serifs: if hair#+.5stem#>1.5u#:-.25u# fi\\fi);
  96. pickup fine.nib; top y3r=x_height+vround 1.5oo;
  97. if serifs: pos1(flare,180); pos2(hair,180);
  98.  pos3(vair,90);  lft x1r=hround max(u,2.1u-.5flare); x3=.5w-.5u;
  99.  y1=min(bh+.5flare+2vair+2,.9[bh,x_height]-.5flare);
  100.  bulb(3,2,1);  % bulb
  101. else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r;
  102.  pos3(1/8[vair,thin_join],90);
  103.  x3=.5w-.2u; top y1r=vround .82[bh,top y3r];
  104.  filldraw stroke term.e(3,1,left,.9,4); fi  % terminal
  105. pos4(stem,0); rt x4r=hround(w-2.5u+.5stem); y4=1/3[bh,x_height];
  106. pos5(stem,0); x5=x4; y5=max(.55bh,2vair);
  107. filldraw stroke super_arc.e(3,4)&z4e..z5e;  % arc and stem
  108. pos6(.3[thin_join,vair],90); x6=x4; bot y6=bh;
  109. pos7(hround(curve-2stem_corr),180);
  110. lft x7r=hround max(.5u,1.5u-.5curve); y7=1/3[top y8l,top y6r];
  111. pos8(vair,270); x8l=.5w-.75u; bot y8r=-oo;
  112. pos9(thin_join,360); z9l=z5l;
  113. (x,y8r)=whatever[z8l,z9l]; x8r:=max(x,x8-u);
  114. {{interim superness:=more_super;
  115.  filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl
  116. if serifs: numeric shaved_stem; shaved_stem=hround(stem-3stem_corr);
  117.  if hair#+.5stem#>1.5u#: pickup tiny.nib;
  118.   pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5;
  119.   pos10(shaved_stem,0); x10=x5'; y10=.2[.5tiny,bh];
  120.   pos11(shaved_stem,0); rt x11r=hround(w-.25u); bot y11=0;
  121.   pos12(shaved_stem,0); x11=x12; top y12=slab+eps;
  122.   filldraw z5'l---z10l...z11l{right}--z11r
  123.    --z12r{left}...z10r+.75(z12-z11)---z5'r--cycle;  % foot
  124.  else: pickup crisp.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5;
  125.   pos10(shaved_stem,0); x10=x5'; y10=1/3bh;
  126.   pos11(.2[vair,stem],90); x11r=.5[x10r,x12r]; bot y11l=-vround .5oo;
  127.   pos12(hair,180); rt x12l=hround(w-.1u); y12=max(y10,y11+vair);
  128.   pos13(hair,180); x13=x12; top y13=max(vround .6bh,top y12);
  129.   (x',y11l)=whatever[z11r,z12r]; x11l:=max(x',x10);
  130.   filldraw stroke z5'e---z10e...z11e{right}...z12e---z13e; fi  % hook
  131. else: numeric shaved_stem; shaved_stem=hround(stem-stem_corr);
  132.  pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5;
  133.  pos10(shaved_stem,0); x10=x5'; bot y10=0;
  134.  filldraw stroke z5'e--z10e; fi  % base of stem
  135. % the accent
  136. lowercase_breve(.5w,0,14,15,16);
  137. penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16); endchar;
  138.  
  139. dcchar "The letter ogonek a";
  140. beginchar(oct"241",9u#,x_height#,desc_depth#);
  141. bh#:=min(bar_height#,1.14x_height#-bar_height#); define_pixels(bh);
  142. italcorr 1/3[bh#,x_height#]*slant+.5stem#-serif_fit#-2u#;
  143. adjust_fit(0,serif_fit# if serifs: if hair#+.5stem#>1.5u#:-.25u# fi\\fi);
  144. pickup fine.nib; top y3r=x_height+vround 1.5oo;
  145. if serifs: pos1(flare,180); pos2(hair,180);
  146.  pos3(vair,90);  lft x1r=hround max(u,2.1u-.5flare); x3=.5w-.5u;
  147.  y1=min(bh+.5flare+2vair+2,.9[bh,x_height]-.5flare);
  148.  bulb(3,2,1);  % bulb
  149. else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r;
  150.  pos3(1/8[vair,thin_join],90);
  151.  x3=.5w-.2u; top y1r=vround .82[bh,top y3r];
  152.  filldraw stroke term.e(3,1,left,.9,4); fi  % terminal
  153. pos4(stem,0); rt x4r=hround(w-2.5u+.5stem); y4=1/3[bh,x_height];
  154. pos5(stem,0); x5=x4; y5=max(.55bh,2vair);
  155. filldraw stroke super_arc.e(3,4)&z4e..z5e;  % arc and stem
  156. pos6(.3[thin_join,vair],90); x6=x4; bot y6=bh;
  157. pos7(hround(curve-2stem_corr),180);
  158. lft x7r=hround max(.5u,1.5u-.5curve); y7=1/3[top y8l,top y6r];
  159. pos8(vair,270); x8l=.5w-.75u; bot y8r=-oo;
  160. pos9(thin_join,360); z9l=z5l;
  161. (x,y8r)=whatever[z8l,z9l]; x8r:=max(x,x8-u);
  162. {{interim superness:=more_super;
  163.  filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl
  164. if serifs: numeric shaved_stem; shaved_stem=hround(stem-3stem_corr);
  165.  if hair#+.5stem#>1.5u#: pickup tiny.nib;
  166.   pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5;
  167.   pos10(shaved_stem,0); x10=x5'; y10=.2[.5tiny,bh];
  168.   pos11(shaved_stem,0); rt x11r=hround(w-.25u); bot y11=0;
  169.   pos12(shaved_stem,0); x11=x12; top y12=slab+eps;
  170.   filldraw z5'l---z10l...z11l{right}--z11r
  171.    --z12r{left}...z10r+.75(z12-z11)---z5'r--cycle;  % foot
  172.  else: pickup crisp.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5;
  173.   pos10(shaved_stem,0); x10=x5'; y10=1/3bh;
  174.   pos11(.2[vair,stem],90); x11r=.5[x10r,x12r]; bot y11l=-vround .5oo;
  175.   pos12(hair,180); rt x12l=hround(w-.1u); y12=max(y10,y11+vair);
  176.   pos13(hair,180); x13=x12; top y13=max(vround .6bh,top y12);
  177.   (x',y11l)=whatever[z11r,z12r]; x11l:=max(x',x10);
  178.   filldraw stroke z5'e---z10e...z11e{right}...z12e---z13e; fi  % hook
  179. else: numeric shaved_stem; shaved_stem=hround(stem-stem_corr);
  180.  pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5;
  181.  pos10(shaved_stem,0); x10=x5'; bot y10=0;
  182.  filldraw stroke z5'e--z10e; fi  % base of stem
  183. % the accent
  184. lowercase_ogonek(if serifs:x11 else: x10r fi,0,14,15,16);
  185. penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16); endchar;
  186.  
  187.  
  188. dcchar "The letter acute c";
  189. beginchar(oct"242",8u#,x_height#+acc_height#,0);
  190. italcorr x_height#*slant-.2u#;
  191. adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi);
  192. pickup fine.nib; pos2(vair',90); pos4(vair',270);
  193. x2=x4=.5(w+u); top y2r=vround(x_height+1.5oo); bot y4r=-oo;
  194. pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5x_height;
  195. if serifs: pos1(hair,0); pos0(flare,0);
  196.  y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,x_height]-.5flare);
  197.  rt x1r=hround(w-.7u); bulb(2,1,0);  % bulb
  198.  pos5(hair,0); rt x5r=hround(w-.5u);
  199.  y5=max(good.y(.5bar_height-.9),y4l+vair');
  200.  (x,y4l)=whatever[z4r,z5l]; x4l:=min(x,x4l+.5u);
  201.  filldraw stroke pulled_super_arc.e(2,3)(.7superpull)
  202.   & pulled_super_arc.e(3,4)(.5superpull)
  203.   ..tension .9 and 1..{x5-x4,5(y5-y4)}z5e;  % arc and lower terminal
  204. else: pos1(4/7[vair',flare],80);
  205.  rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r];
  206.  filldraw stroke term.e(2,1,right,.8,4);  % upper terminal
  207.  pos5(.6[vair',flare],275); rt x5r=hround(w-.5u);
  208.  y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l;
  209.  forsuffixes e=l,r: path p.e; p.e=z4e{right}..tension .9 and 1..z5e;
  210.   if angle direction 1 of p.e>75:
  211.    p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor
  212.  filldraw stroke pulled_super_arc.e(2,3)(.7superpull)
  213.   & pulled_super_arc.e(3,4)(.5superpull) & p.e; fi  % arc and lower terminal
  214. % the accent
  215. lowercase_acute(0,0,6,7);
  216. penlabels(0,1,2,3,4,5,6,7); endchar;
  217.  
  218.  
  219. dcchar "The letter hachek (check) c";
  220. beginchar(oct"243",8u#,x_height#+acc_height#,0);
  221. italcorr x_height#*slant-.2u#;
  222. adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi);
  223. pickup fine.nib; pos2(vair',90); pos4(vair',270);
  224. x2=x4=.5(w+u); top y2r=vround(x_height+1.5oo); bot y4r=-oo;
  225. pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5x_height;
  226. if serifs: pos1(hair,0); pos0(flare,0);
  227.  y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,x_height]-.5flare);
  228.  rt x1r=hround(w-.7u); bulb(2,1,0);  % bulb
  229.  pos5(hair,0); rt x5r=hround(w-.5u);
  230.  y5=max(good.y(.5bar_height-.9),y4l+vair');
  231.  (x,y4l)=whatever[z4r,z5l]; x4l:=min(x,x4l+.5u);
  232.  filldraw stroke pulled_super_arc.e(2,3)(.7superpull)
  233.   & pulled_super_arc.e(3,4)(.5superpull)
  234.   ..tension .9 and 1..{x5-x4,5(y5-y4)}z5e;  % arc and lower terminal
  235. else: pos1(4/7[vair',flare],80);
  236.  rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r];
  237.  filldraw stroke term.e(2,1,right,.8,4);  % upper terminal
  238.  pos5(.6[vair',flare],275); rt x5r=hround(w-.5u);
  239.  y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l;
  240.  forsuffixes e=l,r: path p.e; p.e=z4e{right}..tension .9 and 1..z5e;
  241.   if angle direction 1 of p.e>75:
  242.    p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor
  243.  filldraw stroke pulled_super_arc.e(2,3)(.7superpull)
  244.   & pulled_super_arc.e(3,4)(.5superpull) & p.e; fi  % arc and lower terminal
  245. % the accent
  246. lowercase_hachek(x2,if monospace: vair else: 0 fi,6,7,8,9,10);
  247. penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar;
  248.  
  249.  
  250. dcchar "The letter d'";
  251. beginchar(oct"244",10u#+serif_fit#,asc_height#,0);
  252. italcorr asc_height#*slant-serif_fit#+.5stem#-2u#;
  253. adjust_fit(0,
  254.   if monospace: 2u# else: dot_size#+0.25u# fi);
  255. pickup tiny.nib; pos1(stem',0); pos2(stem,0);
  256. pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2;
  257. rt x1r=hround(w-2.5u+.5stem'); top y1=h;
  258. numeric edge; edge=lft x2l;
  259. pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0);
  260. pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360);
  261. lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),1/3[lft x2,edge]);
  262. y3=1/8[bar_height,x_height];
  263. x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo;
  264. lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height;
  265. x6l=x4l-.2u; bot y6r=-oo;
  266. x7=x3; y7=min(y3,y6+y4-y3+.6vair);
  267. (x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]);
  268. (x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]);
  269. filldraw stroke z3e{up}...pulled_arc.e(4,5)
  270.  & pulled_arc.e(5,6)...{up}z7e; % bowl
  271. y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l));
  272. pickup tiny.nib; bot y2=if serifs:-min(oo,serif_drop) else: 0 fi;
  273. filldraw stroke z1e--z0'e--z0e--z2e;  % stem
  274. if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop);  % upper serif
  275.  sloped_serif.r(2,0,b,1/3,jut,min(oo,serif_drop)); fi  % lower serif
  276. % the accent
  277. komma_one := 8;
  278. if monospace:
  279.  x[komma_one]=hround(x1r+2u+0.5dot_size);
  280. else:
  281.  x[komma_one]=hround(w+0.5dot_size-0.25u);
  282. fi
  283. y[komma_one]+.5dot_size=h;
  284. if monospace:
  285.    comma([komma_one],ee,dot_size,.28u / expansion_factor,
  286.      vround 0.8comma_depth);  % large comma
  287. else:
  288.    comma([komma_one],ee,dot_size,.25u,0.8comma_depth); fi  % comma with increased jut
  289. penlabels(0,1,2,3,4,5,6,7,8); endchar;
  290.  
  291. dcchar "The letter hachek (check) e";
  292. beginchar(oct"245",7.25u#+max(.75u#,.5curve#),x_height#+acc_height#,0);
  293. italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0);
  294. adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi);
  295. numeric left_curve,right_curve;
  296. left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi;
  297. if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi
  298. if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi
  299. pickup tiny.nib; pos1(right_curve,0);
  300. pos2(vair,90); pos3(left_curve,180);
  301. y1=good.y bar_height; top y2r=x_height+vround 1.5oo; y0l=bot y1;
  302. rt x1r=hround min(w-.5u,w-u+.5right_curve);
  303. lft x3r=hround max(.5u,1.25u-.5left_curve); x2=.5w+.25u;
  304. {{interim superness:=more_super;
  305.  filldraw stroke super_arc.e(1,2)}};  % right bowl
  306. y3=.5[y2,y4]; bot y4r=-oo; x4=x2+.25u;
  307. if serifs: pos4(vair',270); pos5(hair,360);
  308.  y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r;
  309.  (x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u);
  310.  filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4)
  311.   ...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal
  312. else: pos4(vair,270);
  313.  filldraw stroke super_arc.e(2,3) & super_arc.e(3,4);  % left bowl and arc
  314.  pickup fine.nib; pos4'(vair,270); z4=z4';
  315.  pos5(.5[vair,flare],275); rt x5r=hround(w-.6u);
  316.  y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l;
  317.  filldraw stroke term.e(4',5,right,1,4); fi  % terminal
  318. path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4);
  319. y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1;
  320. forsuffixes $=l,r:
  321.  x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor
  322. fill stroke z0e--z1'e;  % crossbar
  323. % the accent
  324. lowercase_hachek(x2,if monospace: vair else: 0 fi,6,7,8,9,10);
  325. penlabels(0,1,2,3,4,5,7,8); endchar;
  326.  
  327.  
  328.  
  329. dcchar "The letter ogonek e";
  330. beginchar(oct"246",7.25u#+max(.75u#,.5curve#),x_height#,desc_depth#);
  331. italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0);
  332. adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi);
  333. numeric left_curve,right_curve;
  334. left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi;
  335. if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi
  336. if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi
  337. pickup tiny.nib; pos1(right_curve,0);
  338. pos2(vair,90); pos3(left_curve,180);
  339. y1=good.y bar_height; top y2r=x_height+vround 1.5oo; y0l=bot y1;
  340. rt x1r=hround min(w-.5u,w-u+.5right_curve);
  341. lft x3r=hround max(.5u,1.25u-.5left_curve); x2=.5w+.25u;
  342. {{interim superness:=more_super;
  343.  filldraw stroke super_arc.e(1,2)}};  % right bowl
  344. y3=.5[y2,y4]; bot y4r=-oo; x4=x2+.25u;
  345. if serifs: pos4(vair',270); pos5(hair,360);
  346.  y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r;
  347.  (x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u);
  348.  filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4)
  349.   ...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal
  350. else: pos4(vair,270);
  351.  filldraw stroke super_arc.e(2,3) & super_arc.e(3,4);  % left bowl and arc
  352.  pickup fine.nib; pos4'(vair,270); z4=z4';
  353.  pos5(.5[vair,flare],275); rt x5r=hround(w-.6u);
  354.  y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l;
  355.  filldraw stroke term.e(4',5,right,1,4); fi  % terminal
  356. path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4);
  357. y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1;
  358. forsuffixes $=l,r:
  359.  x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor
  360. fill stroke z0e--z1'e;  % crossbar
  361. % the accent
  362. lowercase_ogonek(if serifs: .25[x4,x5] else:.7[x4,x5] fi,0,7,8,9);
  363. penlabels(0,1,2,3,4,5,7,8,9); endchar;
  364.  
  365.  
  366. iff not variant_g: dcchar "The letter breve g";
  367. beginchar(oct"247",9u#,
  368.    max(x_height#+acc_height#,min(asc_height#,2x_height#)),desc_depth#);
  369. italcorr x_height#*slant+.25u#;
  370. adjust_fit(0,0);
  371. numeric light_vair,light_curve,loop_top,loop_side;
  372. light_vair=Vround(.5[thin_join,vair]+vair_corr);
  373. light_curve=max(fine.breadth,hround(curve-3stem_corr));
  374. loop_top=Vround .77[vair,fudged.stem];
  375. loop_side=hround .64[vair,fudged.stem];
  376. pickup fine.nib; pos1(light_vair,90);
  377. pos2(light_curve,180); pos3(light_vair,270);
  378. pos4(light_curve,360); pos11(loop_top,90);
  379. y11r=good.y(y11r+.15bar_height-y11); x1=x3=.5[x2,x4]; y2=y4=.5[y1,y3];
  380. lft x2r=hround(1.75u-.5light_curve); rt x4r=hround(w-2.75u+.5light_curve);
  381. top y1r=x_height+oo; y3r=good.y(y3r+.27[top y11r,bot y1l]-y3);
  382. filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3);  % left half of bowl
  383. filldraw stroke pulled_arc.e(3,4) & pulled_arc.e(4,1);  % right half of bowl
  384. x0=superness[x1r,x4r]; y0=superness[y4r,y1r];  % NE point on the super bowl
  385. x8'=superness[x3r,x2r]; y8'=superness[y2r,y3r];  % SW point on the super bowl
  386. x8''=superness[x3,x2]; y8''=superness[y2,y3];
  387. pos0(thin_join,angle(z0-z8')+90);
  388. pos8(thin_join,angle(z0-z8')-90); z8=.618[z8',z8''];
  389. if serifs: pos5(vair,90);
  390.  pos6(hair,0); pos7(.5[hair,flare],0); x5=.75[x0,x6]; top y5r=x_height+o;
  391.  rt x6r=hround(w-.25u); y6+(.5[hair,flare])/2=.95[bar_height,x_height]+oo;
  392.  filldraw stroke z0e..{right}z5e; bulb(5,6,7);  % ear
  393. else: pos5(vair',100); top y5r=x_height+oo;
  394.  rt x5l=hround(w-.25u); y5l:=good.y y5l;
  395.  filldraw z0l{z5-z0}..z5l--z5r{left}..{curl 1}z0r--cycle; fi  % ear
  396. pos10(loop_top,90); x10=x8+.75u; y10=y11;
  397. pos12(loop_side,0); pos13(light_vair,-90);
  398. pos14(loop_side,-180); pos10'(.5[thin_join,vair],-270);
  399. rt x12r=hround max(w-1.25u+.5loop_side,w-.5u); y12=y14=.5[y11,y13];
  400. x11=x13=max(.5w,x10+eps); bot y13r=-d-oo-1; x14=w-x12; z10'l=z10l;
  401. filldraw stroke z8e{z8-z0}..z10e---z11e;  % link
  402. filldraw stroke {{interim superness:=hein_super; super_arc.e(11,12)}}
  403.  & super_arc.e(12,13) & super_arc.e(13,14) & super_arc.e(14,10');  % loop
  404. % the accent
  405. lowercase_breve(.5w,0,15,16,17);
  406. penlabels(0,1,2,3,4,5,6,7,8,10,11,12,13,14); labels(8',8''); endchar;
  407.  
  408. iff variant_g: dcchar "Variant letter breve g";
  409. beginchar(oct"247",10u#+serif_fit#,
  410.     max(x_height#+acc_height#,min(asc_height#,2x_height#)),desc_depth#);
  411. italcorr x_height#*slant-serif_fit#+.5stem#-2u# if serifs:+.5u# fi;
  412. adjust_fit(0,serif_fit# if serifs: -.5u# fi);
  413. pickup tiny.nib; pos1(stem',0); pos2(stem,0);
  414. pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2;
  415. rt x1r=hround(w-2.5u+.5stem');
  416. numeric edge; edge=lft x2l;
  417. path edge_path; edge_path=(edge,x_height)--(edge,0);
  418. pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0);
  419. pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360);
  420. lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),2/3[lft x2,edge]); y3=bar_height;
  421. x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo;
  422. lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height;
  423. x6l=x4l-.2u; bot y6r=vround 1/3vair;
  424. lft x7l=edge; y7=min(y3,y6+y4-y3+.6vair);
  425. (x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]);
  426. (x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]);
  427. filldraw stroke z3e{up}...{left}z4e&super_arc.e(4,5)
  428.  &super_arc.e(5,6)&z6e{right}...{up}z7e;  % bowl
  429. y1=ypart(edge_path intersectionpoint(z3l{up}...{left}z4l));
  430. y0=ypart(edge_path intersectionpoint(z7l{down}...{left}z6l));
  431. pickup tiny.nib; bot y2=if serifs: -.25d else: 0 fi;
  432. filldraw stroke z1e--z0'e--z0e--z2e;  % stem
  433. pickup crisp.nib;
  434. pos8(hround(hair-stem_corr),0); pos7'(stem',0);
  435. z7'=z1; x8r=x7'r; top y8=x_height+oo;
  436. filldraw stroke z7'e--z8e;  % point
  437. if serifs: pickup tiny.nib;
  438.  pos9(vair,-90); x9=.5[x2,x10]; bot y9r=-d-o-1;
  439.  pos10(hair,-180); lft x10r=hround u; y10=-.75d+.5flare;
  440.  pos11(flare,-180); z11r=z10r;
  441.  bulb(9,10,11); filldraw stroke super_arc.e(2,9);  % tail
  442. else: pickup fine.nib; pos2'(stem,0); z2'=z2;
  443.  z2''r=z2'r; z2''=z2'; z2''l=(x2'l,0);
  444.  pos9(vair,-90); x9=4.5u; bot y9r=-d-o-1;
  445.  pos10(.5[vair,flare],-90); lft x10=hround 1.25u;
  446.  y10r=good.y -5/6d; y10l:=good.y y10l;
  447.  filldraw stroke z2'e..z2''e&super_arc.e(2'',9)
  448.   & term.e(9,10,left,.9,4); fi  % tail
  449. % the accent
  450. lowercase_breve(.5w,0,12,13,14);
  451. penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14); endchar;
  452.  
  453. dcchar "The letter acute l";
  454. beginchar(oct"250",5u#,asc_height#+acc_height#,0); l_width#:=5u#+2serif_fit#;
  455. italcorr asc_height#*slant-serif_fit#+.5stem#-2u#;
  456. adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#);
  457. pickup tiny.nib; pos1(stem',0); pos2(stem',0);
  458. if odd(w-stem'): change_width; fi
  459. lft x1l=hround(.5w-.5stem'); x1=x2; top y1=asc_height; bot y2=0;
  460. filldraw stroke z1e--z2e;  % stem
  461. if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop);  % upper serif
  462.  dish_serif(2,1,b,1/3,jut,c,1/3,jut); fi  % lower serif
  463. % the accent
  464. uppercase_acute(0,0,3,4);
  465. penlabels(1,2,3,4); endchar;
  466.  
  467.  
  468.  
  469. dcchar "The letter l'";
  470. beginchar(oct"251",5u#,asc_height#,0); l_width#:=5u#+2serif_fit#;
  471. italcorr asc_height#*slant-serif_fit#+.5stem#-2u#;
  472. adjust_fit(serif_fit#+stem_shift#,
  473.   if monospace: 0 else: dot_size#+0.25u# fi);
  474. pickup tiny.nib; pos1(stem',0); pos2(stem',0);
  475. if odd(w-stem'): change_width; fi
  476. lft x1l=hround(.5w-.5stem'); x1=x2; top y1=h; bot y2=0;
  477. filldraw stroke z1e--z2e;  % stem
  478. if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop);  % upper serif
  479.  dish_serif(2,1,b,1/3,jut,c,1/3,jut); fi  % lower serif
  480. % the accent
  481. komma_one := 3;
  482. if monospace:
  483.  x[komma_one]=hround(x1r+u+0.5dot_size);
  484. else:
  485.  x[komma_one]=hround(w+0.5dot_size-0.25u);
  486. fi
  487. y[komma_one]+.5dot_size=h;
  488. if monospace:
  489.    comma([komma_one],ee,dot_size,.28u / expansion_factor,
  490.                        vround 0.8comma_depth);  % large comma
  491. else:
  492.    comma([komma_one],ee,dot_size,.25u,0.8comma_depth); fi  % comma with increased jut
  493. penlabels(1,2,3); endchar;
  494.  
  495.  
  496. dcchar "The letter polish l";
  497. beginchar(oct"252",5u#,asc_height#,0); l_width#:=5u#+2serif_fit#;
  498. italcorr asc_height#*slant-serif_fit#+.5stem#-2u#;
  499. adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#);
  500. pickup tiny.nib; pos1(stem',0); pos2(stem',0);
  501. if odd(w-stem'): change_width; fi
  502. lft x1l=hround(.5w-.5stem'); x1=x2; top y1=h; bot y2=0;
  503. filldraw stroke z1e--z2e;  % stem
  504. if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop);  % upper serif
  505.  dish_serif(2,1,b,1/3,jut,c,1/3,jut); fi  % lower serif
  506. cross_one :=3;
  507. cross_two :=4;
  508. if unknown l_width:
  509.  l_width:=5u+2serif_fit; fi  % nominal width of `l'
  510. if unknown L_stem:
  511.  L_stem:=cap_serif_fit+max(2u+.5cap_stem,3u); fi  % center of `L' stem
  512. %
  513. pickup crisp.nib;
  514. x[cross_two]-x[cross_one]=max(4u,2.8u+stem);
  515. .5[x[cross_one],x[cross_two]]=x1;
  516. y[cross_one]-.5bar=.2[bar_height,x_height];
  517. y[cross_two]+.5bar=.8[bar_height,x_height];
  518. numeric theta; theta=angle(z[cross_two]-z[cross_one])+90;
  519. pos[cross_one](bar,theta); pos[cross_two](bar,theta);
  520. filldraw stroke z[cross_one]e--z[cross_two]e;  % diagonal
  521. penlabels(1,2); endchar;
  522.  
  523. dcchar "The letter acute n";
  524. beginchar(oct"253",10u#,x_height#+acc_height#,0);
  525. italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#;
  526. adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#);
  527. pickup tiny.nib; pos1(stem,0); pos2(stem,0);
  528. numeric shaved_stem; shaved_stem=hround(stem-2stem_corr);
  529. pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(stem,0);
  530. lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1;
  531. top y1=x_height+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2';
  532. filldraw stroke z1'e--z2'e;  % left stem
  533. h_stroke(2,a,3,4);  % arch and right stem
  534. if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif
  535.  numeric inner_jut; pickup tiny.nib;
  536.  if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut;
  537.  else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi
  538.  dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif
  539.  dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif
  540. % the accent
  541. lowercase_acute(0,0,5,6);
  542. penlabels(1,2,3,4,5,6); endchar;
  543.  
  544.  
  545. dcchar "The letter hachek (check) n";
  546. beginchar(oct"254",10u#,x_height#+acc_height#,0);
  547. italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#;
  548. adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#);
  549. pickup tiny.nib; pos1(stem,0); pos2(stem,0);
  550. numeric shaved_stem; shaved_stem=hround(stem-2stem_corr);
  551. pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(stem,0);
  552. lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1;
  553. top y1=x_height+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2';
  554. filldraw stroke z1'e--z2'e;  % left stem
  555. h_stroke(2,a,3,4);  % arch and right stem
  556. if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif
  557.  numeric inner_jut; pickup tiny.nib;
  558.  if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut;
  559.  else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi
  560.  dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif
  561.  dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif
  562. % the accent
  563. lowercase_hachek(.5w,if monospace: vair else: 0 fi,5,6,7,8,9);
  564. penlabels(1,2,3,4,5,6,7,8,9);endchar;
  565.  
  566.  
  567. dcchar "The letter nj";
  568. beginchar(oct"255",10u#,x_height#,desc_depth#);
  569. italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#;
  570. adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#);
  571. pickup tiny.nib; pos1(stem,0); pos2(stem,0);
  572. numeric shaved_stem; shaved_stem=hround(stem-2stem_corr);
  573. pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(stem,0);
  574. lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1;
  575. top y1=h+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2';
  576. filldraw stroke z1'e--z2'e;  % left stem
  577. h_stroke(2,a,3,4);  % arch and right stem
  578. if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif
  579.  numeric inner_jut; pickup tiny.nib;
  580.  if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut;
  581.  else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi
  582.  dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif
  583. % j stroke
  584.  pickup tiny.nib; pos7(vair,-90); pos8(hair,-180); pos9(flare,-180);
  585.  x7=.5[x4,x8r]; bot y7r=-d-oo; y8-.5flare=-.88d;
  586.  if monospace:
  587.  lft x8r=hround(x3r-3u+0.5stem);
  588.  else:
  589.  z8r=z9r; rt x9l=hround(x3r-3u+0.5stem); % floor .75u
  590.  fi;
  591.  (x,y7r)=whatever[z7l,z4l]; x7r:=max(x,.5[x8r,x7]);
  592.  filldraw stroke z4e{down}...z7e{left};  bulb(7,8,9); % arc and bulb
  593. else: pickup fine.nib; pos4'(stem',0); z4'=z4;
  594.  pos8(.2[vair,stem'],-90); pos9(vair,-90);
  595.  lft x9r=hround -.75u+x3r-3u-0.5stem;
  596.  bot y9r=vround 5/6(-d-oo);
  597.  (x,y9l)=whatever[z9r,z3];
  598.  x9l:=x;
  599.  z7r=z4'r;
  600.  (x4'l,y7l)=whatever[z9l,z7r]; x7l=x4'l; y7=y7r;
  601.  x8r=.5[x9r,x7r]; x8l:=.5[x9l,x7l]; bot y8r=-d-oo;
  602.  filldraw stroke z4'e..{down}z7e
  603.  & super_arc.e(7,8)
  604.  & z8e{left}..z9e;
  605. fi  % arc and terminal
  606. penlabels(1,2,3,4,5,6,7,8,9); endchar;
  607.  
  608. dcchar "The letter long Hungarian umlaut o";
  609. beginchar(oct"256",9u#,x_height#+acc_height#,0);
  610. italcorr .7x_height#*slant;
  611. adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi);
  612. penpos1(vair,90); penpos3(vair',-90);
  613. penpos2(curve,180); penpos4(curve,0);
  614. x2r=hround max(.5u,1.25u-.5curve);
  615. x4r=w-x2r; x1=x3=.5w; y1r=x_height+vround 1.5oo; y3r=-oo;
  616. y2=y4=.5x_height-vair_corr; y2l:=y4l:=.52x_height;
  617. penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3)
  618.  & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle;  % bowl
  619. % the accent
  620. lowercase_humlaut(5,6,7,8);
  621. penlabels(1,2,3,4,5,6,7,8); endchar;
  622.  
  623.  
  624. dcchar "The letter acute r";
  625. numeric r_flare#; r_flare#=.75[if serifs: stem# else: vair# fi,flare#];
  626. define_whole_blacker_pixels(r_flare);
  627. beginchar(oct"257",if serifs:max(7u#,5.5u#+r_flare#) else:6.5u# fi,
  628.    x_height#+acc_height#,0);
  629. italcorr x_height#*slant if not serifs: +.25u# fi;
  630. adjust_fit(serif_fit#,0);
  631. pickup fine.nib; top y4r=x_height+oo;
  632. if serifs: pos4(vair,90); pos5(hair,0);
  633.  x4=w-max(1.75u,.25u+r_flare);
  634.  rt x5r=hround(w-.5u+.5); y5+.5r_flare=.9[bar_height,x_height]+oo;
  635.  pos6(r_flare,0); bulb(4,5,6);  % bulb
  636. else: pos4(r_flare,90); rt x4=hround(w-.25u); fi
  637. pos3(thin_join,180); rt x3l=hround(2.5u-.5stem')+stem'; top y3=bar_height;
  638. filldraw stroke z3e{up}...{right}z4e;  % arc
  639. pickup tiny.nib; pos0(stem',0); pos2(stem',0);
  640. pos1(hround(stem-3stem_corr),0); top y1=x_height+min(oo,serif_drop);
  641. pos0'(hround(stem-3stem_corr),0); y0=y0'=y3; x1l=x0l=x0'l=x2l;
  642. lft x1l=hround(2.5u-.5stem'); bot y2=0;
  643. filldraw stroke z1e--z0'e--z0e--z2e;  % stem
  644. if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop);  % upper serif
  645.  dish_serif(2,0,b,1/3,jut,c,1/3,1.25jut); fi  % lower serif
  646. % the accent
  647. lowercase_acute(0,0,7,8);
  648. penlabels(1,2,3,4,5,6,7,8); endchar;
  649.  
  650.  
  651. dcchar "The letter hachek (check) r";
  652. numeric r_flare#; r_flare#=.75[if serifs: stem# else: vair# fi,flare#];
  653. define_whole_blacker_pixels(r_flare);
  654. beginchar(oct"260",if serifs:max(7u#,5.5u#+r_flare#) else:6.5u# fi,
  655.    x_height#+acc_height#,0);
  656. italcorr x_height#*slant if not serifs: +.25u# fi;
  657. adjust_fit(serif_fit#,0);
  658. pickup fine.nib; top y4r=x_height+oo;
  659. if serifs: pos4(vair,90); pos5(hair,0);
  660.  x4=w-max(1.75u,.25u+r_flare);
  661.  rt x5r=hround(w-.5u+.5); y5+.5r_flare=.9[bar_height,x_height]+oo;
  662.  pos6(r_flare,0); bulb(4,5,6);  % bulb
  663. else: pos4(r_flare,90); rt x4=hround(w-.25u); fi
  664. pos3(thin_join,180); rt x3l=hround(2.5u-.5stem')+stem'; top y3=bar_height;
  665. filldraw stroke z3e{up}...{right}z4e;  % arc
  666. pickup tiny.nib; pos0(stem',0); pos2(stem',0);
  667. pos1(hround(stem-3stem_corr),0); top y1=x_height+min(oo,serif_drop);
  668. pos0'(hround(stem-3stem_corr),0); y0=y0'=y3; x1l=x0l=x0'l=x2l;
  669. lft x1l=hround(2.5u-.5stem'); bot y2=0;
  670. filldraw stroke z1e--z0'e--z0e--z2e;  % stem
  671. if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop);  % upper serif
  672.  dish_serif(2,0,b,1/3,jut,c,1/3,1.25jut); fi  % lower serif
  673. % the accent
  674. lowercase_hachek(.5w,if monospace: vair else: 0 fi,7,8,9,10,11);
  675. penlabels(1,2,3,4,5,6,7,8,9,10,11); endchar;
  676.  
  677.  
  678. dcchar "The letter acute s";
  679. beginchar(oct"261",7.1u#,x_height#+acc_height#,0);
  680. italcorr x_height#*slant-if serifs:.55u# else:.3u# fi;
  681. adjust_fit(if monospace: .5u#,.4u# else: 0,if serifs:0 else:-.2u# fi fi);
  682. numeric theta; theta=90-angle(40u,h); slope:=-x_height/40u;  % angle at middle
  683. numeric s_slab; s_slab=if serifs:vair else:Vround .1[vair,stem] fi;
  684. numeric ess'; ess'=max(fine.breadth,ess);
  685. pickup fine.nib; pos2(max(fine.breadth,s_slab-vround vair_corr),-100);
  686. pos0(ess',theta); pos7(s_slab,-90); x2l=x0=x7=.5w;
  687. top y2l=x_height+vround 1.5oo; bot y7r=-oo;
  688. y0-.5ess'=y7l+if serifs:.54 else: .52 fi\\(y2r-y7l-ess');
  689. lft x3l=hround .6u; rt x6r=hround(w-.6u);
  690. x3r-x3l=x6r-x6l=hround .5[s_slab,ess']-fine;
  691. ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r;
  692. ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r;
  693. interim superness:=more_super;
  694. filldraw stroke super_arc.e(2,3) & z3e{down}
  695.  ..z4e---z5e..z6e{down} & super_arc.e(6,7);  % main stroke
  696. if serifs: pos1(hair,180); pos8(hair,180);
  697.  rt x1l=hround(w-1.05u); lft x8r=hround .6u;
  698.  bot y1=min(bot y2r,vround 1/5[top y5r,x_height]);
  699.  top y8=max(top y7l,vround 5/6 bot y4l);
  700.  filldraw stroke z1e{up}....{left}z2e;  % upper arc
  701.  filldraw stroke z7e{left}....{x8-x7,5(y8-y7)}z8e;  % lower arc
  702.  path upper_arc, lower_arc;
  703.  upper_arc=z1{up}....{left}z2; lower_arc=z7{left}....{x8-x7,5(y8-y7)}z8;
  704.  pos10(.3[fine.breadth,cap_hair],0); pos9(.3[fine.breadth,cap_hair],0);
  705.  x10r=x1l; top y10=top y2l; x9l=x8r; bot y9=bot y7r;
  706.  x1l-x1'=x8'-x8r=1.6cap_curve-fine; y1'=y1; y8'=y8;
  707.  numeric t; t=xpart(upper_arc intersectiontimes(z10l--z1'));
  708.  filldraw z1l--z10r--z10l--subpath(t,0) of upper_arc--cycle;  % upper barb
  709.  t:=xpart(lower_arc intersectiontimes(z9r--z8'));
  710.  filldraw z8r--z9l--z9r--subpath(t,1) of lower_arc--cycle;  % lower barb
  711. else: pos1(4/7[s_slab,flare],-100); pos8(flare,-100);
  712.  x1l=good.x(x1l+w-u-rt x1); lft x8r=hround .5u;
  713.  top y1l=vround(.93x_height+1.5oo); bot y8r=vround .1x_height-oo;
  714.  filldraw stroke term.e(2,1,right,.9,4);  % upper arc and terminal
  715.  filldraw stroke term.e(7,8,left,1,4); fi  % lower arc and terminal
  716. % the accent
  717. lowercase_acute(0,0,11,12);
  718. penlabels(0,1,1',2,3,4,5,6,7,8,8',9,10); endchar;
  719.  
  720.  
  721. dcchar "The letter hachek (check) s";
  722. beginchar(oct"262",7.1u#,x_height#+acc_height#,0);
  723. italcorr x_height#*slant-if serifs:.55u# else:.3u# fi;
  724. adjust_fit(if monospace: .5u#,.4u# else: 0,if serifs:0 else:-.2u# fi fi);
  725. numeric theta; theta=90-angle(40u,h); slope:=-x_height/40u;  % angle at middle
  726. numeric s_slab; s_slab=if serifs:vair else:Vround .1[vair,stem] fi;
  727. numeric ess'; ess'=max(fine.breadth,ess);
  728. pickup fine.nib; pos2(max(fine.breadth,s_slab-vround vair_corr),-100);
  729. pos0(ess',theta); pos7(s_slab,-90); x2l=x0=x7=.5w;
  730. top y2l=x_height+vround 1.5oo; bot y7r=-oo;
  731. y0-.5ess'=y7l+if serifs:.54 else: .52 fi\\(y2r-y7l-ess');
  732. lft x3l=hround .6u; rt x6r=hround(w-.6u);
  733. x3r-x3l=x6r-x6l=hround .5[s_slab,ess']-fine;
  734. ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r;
  735. ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r;
  736. interim superness:=more_super;
  737. filldraw stroke super_arc.e(2,3) & z3e{down}
  738.  ..z4e---z5e..z6e{down} & super_arc.e(6,7);  % main stroke
  739. if serifs: pos1(hair,180); pos8(hair,180);
  740.  rt x1l=hround(w-1.05u); lft x8r=hround .6u;
  741.  bot y1=min(bot y2r,vround 1/5[top y5r,x_height]);
  742.  top y8=max(top y7l,vround 5/6 bot y4l);
  743.  filldraw stroke z1e{up}....{left}z2e;  % upper arc
  744.  filldraw stroke z7e{left}....{x8-x7,5(y8-y7)}z8e;  % lower arc
  745.  path upper_arc, lower_arc;
  746.  upper_arc=z1{up}....{left}z2; lower_arc=z7{left}....{x8-x7,5(y8-y7)}z8;
  747.  pos10(.3[fine.breadth,cap_hair],0); pos9(.3[fine.breadth,cap_hair],0);
  748.  x10r=x1l; top y10=top y2l; x9l=x8r; bot y9=bot y7r;
  749.  x1l-x1'=x8'-x8r=1.6cap_curve-fine; y1'=y1; y8'=y8;
  750.  numeric t; t=xpart(upper_arc intersectiontimes(z10l--z1'));
  751.  filldraw z1l--z10r--z10l--subpath(t,0) of upper_arc--cycle;  % upper barb
  752.  t:=xpart(lower_arc intersectiontimes(z9r--z8'));
  753.  filldraw z8r--z9l--z9r--subpath(t,1) of lower_arc--cycle;  % lower barb
  754. else: pos1(4/7[s_slab,flare],-100); pos8(flare,-100);
  755.  x1l=good.x(x1l+w-u-rt x1); lft x8r=hround .5u;
  756.  top y1l=vround(.93x_height+1.5oo); bot y8r=vround .1x_height-oo;
  757.  filldraw stroke term.e(2,1,right,.9,4);  % upper arc and terminal
  758.  filldraw stroke term.e(7,8,left,1,4); fi  % lower arc and terminal
  759. % the accent
  760. lowercase_hachek(.5w,if monospace: vair else: 0 fi,11,12,13,14,15);
  761. penlabels(0,1,1',2,3,4,5,6,7,8,8',9,10); endchar;
  762.  
  763. dcchar "The letter cedilla s";
  764. beginchar(oct"263",7.1u#,x_height#,0.875desc_depth#);
  765. italcorr x_height#*slant-if serifs:.55u# else:.3u# fi;
  766. adjust_fit(if monospace: .5u#,.4u# else: 0,if serifs:0 else:-.2u# fi fi);
  767. numeric theta; theta=90-angle(40u,h); slope:=-x_height/40u;  % angle at middle
  768. numeric s_slab; s_slab=if serifs:vair else:Vround .1[vair,stem] fi;
  769. numeric ess'; ess'=max(fine.breadth,ess);
  770. pickup fine.nib; pos2(max(fine.breadth,s_slab-vround vair_corr),-100);
  771. pos0(ess',theta); pos7(s_slab,-90); x2l=x0=x7=.5w;
  772. top y2l=x_height+vround 1.5oo; bot y7r=-oo;
  773. y0-.5ess'=y7l+if serifs:.54 else: .52 fi\\(y2r-y7l-ess');
  774. lft x3l=hround .6u; rt x6r=hround(w-.6u);
  775. x3r-x3l=x6r-x6l=hround .5[s_slab,ess']-fine;
  776. ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r;
  777. ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r;
  778. interim superness:=more_super;
  779. filldraw stroke super_arc.e(2,3) & z3e{down}
  780.  ..z4e---z5e..z6e{down} & super_arc.e(6,7);  % main stroke
  781. if serifs: pos1(hair,180); pos8(hair,180);
  782.  rt x1l=hround(w-1.05u); lft x8r=hround .6u;
  783.  bot y1=min(bot y2r,vround 1/5[top y5r,x_height]);
  784.  top y8=max(top y7l,vround 5/6 bot y4l);
  785.  filldraw stroke z1e{up}....{left}z2e;  % upper arc
  786.  filldraw stroke z7e{left}....{x8-x7,5(y8-y7)}z8e;  % lower arc
  787.  path upper_arc, lower_arc;
  788.  upper_arc=z1{up}....{left}z2; lower_arc=z7{left}....{x8-x7,5(y8-y7)}z8;
  789.  pos10(.3[fine.breadth,cap_hair],0); pos9(.3[fine.breadth,cap_hair],0);
  790.  x10r=x1l; top y10=top y2l; x9l=x8r; bot y9=bot y7r;
  791.  x1l-x1'=x8'-x8r=1.6cap_curve-fine; y1'=y1; y8'=y8;
  792.  numeric t; t=xpart(upper_arc intersectiontimes(z10l--z1'));
  793.  filldraw z1l--z10r--z10l--subpath(t,0) of upper_arc--cycle;  % upper barb
  794.  t:=xpart(lower_arc intersectiontimes(z9r--z8'));
  795.  filldraw z8r--z9l--z9r--subpath(t,1) of lower_arc--cycle;  % lower barb
  796. else: pos1(4/7[s_slab,flare],-100); pos8(flare,-100);
  797.  x1l=good.x(x1l+w-u-rt x1); lft x8r=hround .5u;
  798.  top y1l=vround(.93x_height+1.5oo); bot y8r=vround .1x_height-oo;
  799.  filldraw stroke term.e(2,1,right,.9,4);  % upper arc and terminal
  800.  filldraw stroke term.e(7,8,left,1,4); fi  % lower arc and terminal
  801. % the accent
  802. lowercase_cedilla(x7,0,11,12,13,14,15);
  803. penlabels(0,1,1',2,3,4,5,6,7,8,8',9,10); endchar;
  804.  
  805. dcchar "The letter t with comma";
  806. beginchar(oct"264",6u#+max(u#,.5stem#),
  807.  min(asc_height#,if hefty:9/7 else:10/7 fi\\ x_height#),0);
  808. italcorr x_height#*slant if serifs: -.9u# else: -.4u# fi;
  809. adjust_fit(0,
  810.     if monospace: 0 else: -1.5u#+dot_size# fi);
  811. numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi);
  812. pickup fine.nib; pos2(shaved_stem,180);pos3(shaved_stem,180);
  813. lft x2r=lft x3r=hround(2.5u-.5shaved_stem);
  814. y2=y8; y3=max(.5bar_height,2vair);
  815. pickup crisp.nib; pos8(bar,90);
  816. rt x8=hround(w-1.3u); top y8r=x_height; lft x7=hround 1/3u; y7l=y8l;
  817. if hefty: pos7(bar,90);
  818.  filldraw stroke z7e--z8e;  % crossbar
  819.  pickup tiny.nib; pos1(hround(shaved_stem-stem_corr),0);
  820.  rt x1r=fine.rt x2l; top y1=h;
  821.  penpos2'(x1r-x1l,0); x2'=x1; y2'=y2;
  822.  filldraw stroke z1e--z2'e;  % upper terminal
  823. else: pos7(vair,90); pos1(hair,0);
  824.  rt x1r=fine.rt x2l; top y1=h;
  825.  filldraw z1l{down}...{left}z7r--z7l--z8l
  826.   --z8r--(x1r,y8r)--z1r--cycle; fi  % upper terminal and crossbar
  827. pickup fine.nib; interim superness:=more_super;
  828. pos4(vair',-90); bot y4r=-oo; rt x5r=hround(w-u);
  829. if serifs: pos5(hair,0); y5=y3; x4l=.5[x3l,x5l];
  830.  (x,y4r)=whatever[z4l,z5l]; x4r:=max(x,.5[x3r,x4]);
  831.  filldraw stroke z2e..super_arc.e(3,4)...{up}z5e;  % stem and hook
  832.  pickup crisp.nib; pos6(hair,0); pos5'(hair,0);
  833.  x6=x5=x5'; top y6=max(vround .75bar_height,top y5); y5=y5';
  834.  filldraw stroke z5'e--z6e;  % terminal
  835. else: pos5(vair,-75); top y5l=vround .2[top y4l,bar_height];
  836.  x5l:=good.x x5l; x4l=1/3[x3l,x5l]; x4r:=1/3[x3r,x5r]; y3l:=y3l+.2vair;
  837.  filldraw stroke z2e..super_arc.e(3,4);  % stem and hook
  838.  path p; p=stroke z4e{right}..tension .9 and atleast 1..z5e;  % terminal
  839.  if (xpart(z5l-precontrol 1 of p)<0) or (xpart(z5r-postcontrol 2 of p)<0):
  840.   filldraw stroke z4e{right}...{up}z5e;
  841.  else: filldraw p; fi fi;
  842. % the accent
  843. komma_one := 9;
  844. if monospace:
  845.  x[komma_one]=hround(x1r+u+dot_size);
  846. else:
  847.  x[komma_one]=hround(w+0.5dot_size-2u);
  848. fi
  849. if monospace:
  850.    y[komma_one]r=asc_height+0.25dot_size;
  851.    comma([komma_one],ee,dot_size,.28u,vround 0.35comma_depth);  % large comma
  852. else:
  853.    if serifs:
  854.      if asc_height>2x_height:
  855.        y[komma_one]=y8r+dot_size+0.4comma_depth+min(bar,.5dot_size);
  856.      else:
  857.      y[komma_one]r=asc_height;
  858.    fi
  859.    comma([komma_one],ee,dot_size,.25u,0.4comma_depth);
  860.        % comma with increased jut
  861.    else:
  862.    y[komma_one]r=asc_height;
  863.    comma([komma_one],ee,dot_size,.25u,0.6comma_depth); fi
  864.        % comma with increased jut
  865.    fi
  866. penlabels(1,2,3,4,5,6,7,8); endchar;
  867.  
  868.  
  869. dcchar "The letter cedilla t";
  870. beginchar(oct"265",6u#+max(u#,.5stem#),
  871.  min(asc_height#,if hefty:9/7 else:10/7 fi\\ x_height#),0.875desc_depth#);
  872. italcorr x_height#*slant if serifs: -.9u# else: -.4u# fi;
  873. adjust_fit(0,if serifs: 0 else: -.5u# fi);
  874. numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi);
  875. pickup fine.nib; pos2(shaved_stem,180);pos3(shaved_stem,180);
  876. lft x2r=lft x3r=hround(2.5u-.5shaved_stem);
  877. y2=y8; y3=max(.5bar_height,2vair);
  878. pickup crisp.nib; pos8(bar,90);
  879. rt x8=hround(w-1.3u); top y8r=x_height; lft x7=hround 1/3u; y7l=y8l;
  880. if hefty: pos7(bar,90);
  881.  filldraw stroke z7e--z8e;  % crossbar
  882.  pickup tiny.nib; pos1(hround(shaved_stem-stem_corr),0);
  883.  rt x1r=fine.rt x2l; top y1=h;
  884.  penpos2'(x1r-x1l,0); x2'=x1; y2'=y2;
  885.  filldraw stroke z1e--z2'e;  % upper terminal
  886. else: pos7(vair,90); pos1(hair,0);
  887.  rt x1r=fine.rt x2l; top y1=h;
  888.  filldraw z1l{down}...{left}z7r--z7l--z8l
  889.   --z8r--(x1r,y8r)--z1r--cycle; fi  % upper terminal and crossbar
  890. pickup fine.nib; interim superness:=more_super;
  891. pos4(vair',-90); bot y4r=-oo; rt x5r=hround(w-u);
  892. if serifs: pos5(hair,0); y5=y3; x4l=.5[x3l,x5l];
  893.  (x,y4r)=whatever[z4l,z5l]; x4r:=max(x,.5[x3r,x4]);
  894.  filldraw stroke z2e..super_arc.e(3,4)...{up}z5e;  % stem and hook
  895.  pickup crisp.nib; pos6(hair,0); pos5'(hair,0);
  896.  x6=x5=x5'; top y6=max(vround .75bar_height,top y5); y5=y5';
  897.  filldraw stroke z5'e--z6e;  % terminal
  898. else: pos5(vair,-75); top y5l=vround .2[top y4l,bar_height];
  899.  x5l:=good.x x5l; x4l=1/3[x3l,x5l]; x4r:=1/3[x3r,x5r]; y3l:=y3l+.2vair;
  900.  filldraw stroke z2e..super_arc.e(3,4);  % stem and hook
  901.  path p; p=stroke z4e{right}..tension .9 and atleast 1..z5e;  % terminal
  902.  if (xpart(z5l-precontrol 1 of p)<0) or (xpart(z5r-postcontrol 2 of p)<0):
  903.   filldraw stroke z4e{right}...{up}z5e;
  904.  else: filldraw p; fi fi;
  905. % the accent
  906. lowercase_cedilla(x4,0,9,10,11,12,13);
  907. penlabels(1,2,3,4,5,6,7,8,9,10,1,12,13); endchar;
  908.  
  909. dcchar "The letter long Hungarian umlaut u";
  910. beginchar(oct"266",10u#,x_height#+acc_height#,0);
  911. italcorr x_height#*slant-serif_fit#+.5stem#-2u#;
  912. adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#);
  913. numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi;
  914. if light_vair<fine.breadth: light_vair:=fine.breadth; fi
  915. pickup tiny.nib; pos1(stem,0); pos2(stem,0);
  916. pos3(stem,0); pos4(stem',0);
  917. lft x1l=hround(2.5u-.5stem); x1=x2; x3=w-x1; x3r=x4r;
  918. if serifs: top y1=x_height+min(oo,serif_drop); bot y4=-min(oo,serif_drop);
  919. else: top y1=x_height; bot y4=0; fi
  920. pos0(stem,0); pos0'(stem',0); x0=x3; x0'=x4; y0=y0';
  921. penpos2'(stem-fine,-180); z2'=z2; y3=y1; y2=.5bar_height;
  922. penpos5(max(eps,light_vair-fine),-90); penpos6(thin_join-fine,0);
  923. y6=y0=2/3bar_height;
  924. filldraw stroke z1e--z2e;  % left stem
  925. filldraw stroke z3e..z0e--z0'e..z4e;  % right stem
  926. pickup fine.nib; bot y5r=-oo; x5l=.5w-.25u; lft x6l=tiny.lft x0l;
  927. (x,y5r)=whatever[z5l,z6l]; x5r:=max(x,.5[x5,x2'r]);
  928. filldraw stroke {{interim superness:=hein_super;
  929.   pulled_arc.e(2',5)}} & z5e{right}...{up}z6e;  % arc
  930. if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper left serif
  931.  sloped_serif.l(3,0,b,1/3,jut,serif_drop); % upper right serif
  932.  sloped_serif.r(4,0',c,1/3,jut,min(oo,serif_drop)); fi % lower right serif
  933. % the accent
  934. lowercase_humlaut(7,8,9,10);
  935. penlabels(1,2,3,4,5,6,7,8,9,10); endchar;
  936.  
  937.  
  938. dcchar "The letter circle u";
  939. beginchar(oct"267",10u#,x_height#+acc_height#,0);
  940. italcorr x_height#*slant-serif_fit#+.5stem#-2u#;
  941. adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#);
  942. numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi;
  943. if light_vair<fine.breadth: light_vair:=fine.breadth; fi
  944. pickup tiny.nib; pos1(stem,0); pos2(stem,0);
  945. pos3(stem,0); pos4(stem',0);
  946. lft x1l=hround(2.5u-.5stem); x1=x2; x3=w-x1; x3r=x4r;
  947. if serifs: top y1=x_height+min(oo,serif_drop); bot y4=-min(oo,serif_drop);
  948. else: top y1=x_height; bot y4=0; fi
  949. pos0(stem,0); pos0'(stem',0); x0=x3; x0'=x4; y0=y0';
  950. penpos2'(stem-fine,-180); z2'=z2; y3=y1; y2=.5bar_height;
  951. penpos5(max(eps,light_vair-fine),-90); penpos6(thin_join-fine,0);
  952. y6=y0=2/3bar_height;
  953. filldraw stroke z1e--z2e;  % left stem
  954. filldraw stroke z3e..z0e--z0'e..z4e;  % right stem
  955. pickup fine.nib; bot y5r=-oo; x5l=.5w-.25u; lft x6l=tiny.lft x0l;
  956. (x,y5r)=whatever[z5l,z6l]; x5r:=max(x,.5[x5,x2'r]);
  957. filldraw stroke {{interim superness:=hein_super;
  958.   pulled_arc.e(2',5)}} & z5e{right}...{up}z6e;  % arc
  959. if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper left serif
  960.  sloped_serif.l(3,0,b,1/3,jut,serif_drop); % upper right serif
  961.  sloped_serif.r(4,0',c,1/3,jut,min(oo,serif_drop)); fi % lower right serif
  962. % the accent
  963. lowercase_circle(.5w,(1/3[x_height,h]+apex_o),7,8,9,10);
  964. penlabels(1,2,3,4,5,6,7,8,9,10); endchar;
  965.  
  966.  
  967. dcchar "The letter umlaut y";
  968. beginchar(oct"270",if serifs:9.5u# else:9u# fi,x_height#+acc_height#,desc_depth#);
  969. italcorr x_height#*slant+.25u#;
  970. adjust_fit(serif_fit# if monospace:+\\.5u#,.5u#+ else:,fi\\ serif_fit#);
  971. numeric left_stem,right_stem,bot_stem,bot_vair,outer_jut;
  972. left_stem=fudged.stem-stem_corr;
  973. right_stem=fudged.hair if hefty:-2stem_corr fi;
  974. bot_stem=fudged.hair if hefty:-8stem_corr fi;
  975. bot_vair=Vround(if serifs: vair else:.5[vair,bot_stem] fi);
  976. outer_jut=.75jut;
  977. x1l=w-x4r=l+letter_fit+outer_jut+.25u; y1=y4r=x_height; y2=y3=0; x2l=x3l;
  978. numeric alpha,alpha[]; x9=3u; y9=bot_vair-d-oo;
  979. alpha1=diag_ratio(2,bot_stem,y1-y3,x4r-x1l-apex_corr);
  980. alpha2=diag_ratio(1,bot_stem,y1-y9,x4r-x9);
  981. if alpha1<alpha2: x2l-x1l=x4r-x3r+apex_corr; alpha=alpha1;
  982. else: alpha=alpha2; z3l=whatever[z9,z4r-(alpha*bot_stem,0)]; fi
  983. penpos3(alpha*bot_stem,0); penpos4(alpha*right_stem,0);
  984. alpha3=(y1++(x2l-x1l))/y1;
  985. penpos1(alpha3*left_stem,0); penpos2(alpha3*left_stem,0);
  986. z0=whatever[z1r,z2r]=z4l+whatever*(z3r-z4r);
  987. if y0>notch_cut: y0:=notch_cut;
  988.   fill z0+.5right{up}...{z4r-z3r}diag_end(0,4l,1,1,4r,3r)
  989.     --z3r--z2l--diag_end(2l,1l,1,1,1r,2r){z2-z1}
  990.     ...{down}z0+.5left--cycle; % left and right diagonals
  991. else: fill z0--diag_end(0,4l,1,1,4r,3r)--z3r--z2l
  992.     --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals
  993. penpos5(alpha*bot_stem,0); z5r=whatever[z3r,z4r]; y5-.5vair=-.5d;
  994. if serifs: numeric light_bulb; light_bulb=hround 7/8[hair,flare]; clearpen;
  995.  penpos6(vair,-90); penpos7(hair,-180); penpos8(light_bulb,-180);
  996.  x6=2u; y6r=-d-oo; y8-.5light_bulb=-.85d; x8r=hround .35u;
  997.  fill stroke z3e---z5e...{left}z6e; bulb(6,7,8);  % arc and bulb
  998.  numeric inner_jut; pickup tiny.nib;
  999.  prime_points_inside(1,2); prime_points_inside(4,3);
  1000.  if rt x1'r+jut+.5u+1<=lft x4'l-jut: inner_jut=jut;
  1001.  else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi
  1002.  dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut);  % left serif
  1003.  dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark);  % right serif
  1004. else: penpos6(bot_vair,-90); x6=2.5u; y6r=-d-oo;
  1005.  fill stroke z3e---z5e...{left}z6e;  % arc
  1006.  pickup fine.nib; pos6'(bot_vair,-90); z6'=z6;
  1007.  pos7(2/3[bot_vair,flare],-85);
  1008.  lft x7l=hround u; bot y7r=vround-.96d-oo; y7l:=good.y y7l;
  1009.  filldraw stroke term.e(6',7,left,1,4); fi % arc and terminal
  1010. % the accent
  1011. lowercase_umlaut(0,0,10,11,12,13);
  1012. penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13); endchar;
  1013.  
  1014. dcchar "The letter acute z";
  1015. beginchar(oct"271",8u#,x_height#+acc_height#,0);
  1016. italcorr x_height#*slant-.5serif_fit#-.3u#;
  1017. adjust_fit(0,.5serif_fit#);
  1018. numeric arm_thickness[],z_stem;
  1019. if hefty: arm_thickness1=Vround(vair-vair_corr); arm_thickness2=vair;
  1020.  z_stem=.6[vair,stem];
  1021. else: arm_thickness1=vair; arm_thickness2=vair'; z_stem=.9[vair,stem]; fi
  1022. pickup tiny.nib; rt x1r=rt x2r=hround(w-.8u); lft x3l=lft x4l=hround .5u;
  1023. top y1=x_height; y2=min(y1,x_height-2/3arm_thickness1);
  1024. bot y4=0; y3=max(y4,2/3arm_thickness2);
  1025. numeric alpha; alpha=diag_ratio(1,z_stem-tiny,y2-y3,x2r-x3l-slant*(y2-y3));
  1026. penpos1(alpha*(z_stem-tiny),0); penpos2(alpha*(z_stem-tiny),0);
  1027. penpos3(alpha*(z_stem-tiny),0); penpos4(alpha*(z_stem-tiny),0);
  1028. pair delta; delta=penoffset z3-z2 of currentpen;
  1029. fill top lft z1l--z2l+delta---z3l+delta..lft z3l---lft z4l..bot z4l
  1030.  ---bot rt z4r--z3r-delta---z2r-delta..rt z2r---rt z1r..top z1r
  1031.  ---cycle;  % diagonal
  1032. pickup crisp.nib; pos5(arm_thickness1,90); pos6(hair,180);
  1033. top y5r=x_height; x5=x1; lft x6r=hround .75u; y6=good.y(y5l-beak/1.4)-eps;
  1034. arm(5,6,a,beak_darkness,-.4beak_jut);  % upper arm and beak
  1035. pos7(arm_thickness2,-90); pos8(hair,0);
  1036. bot y7r=0; x7=x4; rt x8r=hround(w-.75u); y8=good.y(y7l+beak/1.2)+eps;
  1037. arm(7,8,b,beak_darkness,.6beak_jut);  % lower arm and beak
  1038. % the accent
  1039. lowercase_acute(0,0,9,10);
  1040. penlabels(1,2,3,4,5,6,7,8); endchar;
  1041.  
  1042. dcchar "The hachek (check) z";
  1043. beginchar(oct"272",8u#,x_height#+acc_height#,0);
  1044. italcorr x_height#*slant-.5serif_fit#-.3u#;
  1045. adjust_fit(0,.5serif_fit#);
  1046. numeric arm_thickness[],z_stem;
  1047. if hefty: arm_thickness1=Vround(vair-vair_corr); arm_thickness2=vair;
  1048.  z_stem=.6[vair,stem];
  1049. else: arm_thickness1=vair; arm_thickness2=vair'; z_stem=.9[vair,stem]; fi
  1050. pickup tiny.nib; rt x1r=rt x2r=hround(w-.8u); lft x3l=lft x4l=hround .5u;
  1051. top y1=x_height; y2=min(y1,x_height-2/3arm_thickness1);
  1052. bot y4=0; y3=max(y4,2/3arm_thickness2);
  1053. numeric alpha; alpha=diag_ratio(1,z_stem-tiny,y2-y3,x2r-x3l-slant*(y2-y3));
  1054. penpos1(alpha*(z_stem-tiny),0); penpos2(alpha*(z_stem-tiny),0);
  1055. penpos3(alpha*(z_stem-tiny),0); penpos4(alpha*(z_stem-tiny),0);
  1056. pair delta; delta=penoffset z3-z2 of currentpen;
  1057. fill top lft z1l--z2l+delta---z3l+delta..lft z3l---lft z4l..bot z4l
  1058.  ---bot rt z4r--z3r-delta---z2r-delta..rt z2r---rt z1r..top z1r
  1059.  ---cycle;  % diagonal
  1060. pickup crisp.nib; pos5(arm_thickness1,90); pos6(hair,180);
  1061. top y5r=x_height; x5=x1; lft x6r=hround .75u; y6=good.y(y5l-beak/1.4)-eps;
  1062. arm(5,6,a,beak_darkness,-.4beak_jut);  % upper arm and beak
  1063. pos7(arm_thickness2,-90); pos8(hair,0);
  1064. bot y7r=0; x7=x4; rt x8r=hround(w-.75u); y8=good.y(y7l+beak/1.2)+eps;
  1065. arm(7,8,b,beak_darkness,.6beak_jut);  % lower arm and beak
  1066. % the accent
  1067. lowercase_hachek(.5w,if monospace: vair else: 0 fi,9,10,11,12,13);
  1068. penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13); endchar;
  1069.  
  1070.  
  1071.  
  1072. dcchar "The dot z";
  1073. beginchar(oct"273",8u#,x_height#+acc_height#,0);
  1074. italcorr x_height#*slant-.5serif_fit#-.3u#;
  1075. adjust_fit(0,.5serif_fit#);
  1076. numeric arm_thickness[],z_stem;
  1077. if hefty: arm_thickness1=Vround(vair-vair_corr); arm_thickness2=vair;
  1078.  z_stem=.6[vair,stem];
  1079. else: arm_thickness1=vair; arm_thickness2=vair'; z_stem=.9[vair,stem]; fi
  1080. pickup tiny.nib; rt x1r=rt x2r=hround(w-.8u); lft x3l=lft x4l=hround .5u;
  1081. top y1=x_height; y2=min(y1,x_height-2/3arm_thickness1);
  1082. bot y4=0; y3=max(y4,2/3arm_thickness2);
  1083. numeric alpha; alpha=diag_ratio(1,z_stem-tiny,y2-y3,x2r-x3l-slant*(y2-y3));
  1084. penpos1(alpha*(z_stem-tiny),0); penpos2(alpha*(z_stem-tiny),0);
  1085. penpos3(alpha*(z_stem-tiny),0); penpos4(alpha*(z_stem-tiny),0);
  1086. pair delta; delta=penoffset z3-z2 of currentpen;
  1087. fill top lft z1l--z2l+delta---z3l+delta..lft z3l---lft z4l..bot z4l
  1088.  ---bot rt z4r--z3r-delta---z2r-delta..rt z2r---rt z1r..top z1r
  1089.  ---cycle;  % diagonal
  1090. pickup crisp.nib; pos5(arm_thickness1,90); pos6(hair,180);
  1091. top y5r=x_height; x5=x1; lft x6r=hround .75u; y6=good.y(y5l-beak/1.4)-eps;
  1092. arm(5,6,a,beak_darkness,-.4beak_jut);  % upper arm and beak
  1093. pos7(arm_thickness2,-90); pos8(hair,0);
  1094. bot y7r=0; x7=x4; rt x8r=hround(w-.75u); y8=good.y(y7l+beak/1.2)+eps;
  1095. arm(7,8,b,beak_darkness,.6beak_jut);  % lower arm and beak
  1096. % the accent
  1097. dot_one   := 9;
  1098. dot_two   := 10;
  1099. numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#);
  1100. define_whole_blacker_pixels(dot_diam);
  1101. pickup tiny.nib;
  1102. pos[dot_one](dot_diam,0);
  1103. pos[dot_two](dot_diam,90);
  1104. x[dot_one]=x[dot_two]=.5w;
  1105. top y[dot_two]r=min(asc_height,10/7x_height+.5dot_diam);
  1106. if bot y[dot_two]l<x_height+o+slab:
  1107.    y[dot_two]l:=min(y[dot_two]r-eps,acc_height+x_height+o+slab+.5tiny); fi
  1108. y[dot_one]=.5[y[dot_two]l,y[dot_two]r];
  1109. dot([dot_one],[dot_two]);  % dot
  1110. penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13); endchar;
  1111.  
  1112. dcchar "The letter ij";
  1113. numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#);
  1114. beginchar(oct"274",10.5u#,min(asc_height#,10/7x_height#+.5dot_diam#),desc_depth#);
  1115. define_whole_blacker_pixels(dot_diam);
  1116. italcorr h#*slant-serif_fit# + .5dot_diam# -2u#;
  1117. % adjust_fit(serif_fit#+stem_shift# if monospace:+.25u#fi,serif_fit#-stem_shift#);
  1118. pickup tiny.nib; pos1(stem',0); pos2(stem',0);
  1119. if odd(w-stem'): change_width; fi
  1120. lft x1l=hround(.25w-.5stem'); x1=x2;
  1121. top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=0;
  1122. filldraw stroke z1e--z2e;  % stem
  1123. pos3(dot_diam,0); pos4(dot_diam,90);
  1124. if serifs: x3r=max(x1r,x1+.5(dot_diam-tiny)-.2jut) else: x3=x1-.5 fi;
  1125. top y4r=h+1;
  1126. if bot y4l-top y1<slab: y4l:=min(y4r-eps,y1+tiny+slab); fi
  1127. x3=x4; y3=.5[y4l,y4r]; dot(3,4);  % dot
  1128. if serifs: sloped_serif.l(1,2,a,1/3,.95jut,serif_drop);  % upper serif
  1129.  dish_serif(2,1,b,1/3,jut,c,1/3,.9jut); fi  % lower serif
  1130. %
  1131. adjust_fit(serif_fit#+2stem_shift# if monospace:+\\.5u# fi,
  1132.  serif_fit#-2stem_shift# if monospace:-.5u# fi);
  1133. pickup tiny.nib; pos11(stem',0); pos12(stem',0);
  1134. rt x11r=hround(.75w+.25u+.5stem'); x11=x12;
  1135. top y11=x_height if serifs: +min(oo,serif_drop) fi; bot y12=-1/3d;
  1136. filldraw stroke z11e--z12e;  % stem
  1137. pos13(dot_diam,0); pos14(dot_diam,90);
  1138. x13r=x11r; top y14r=h+1;
  1139. if bot y14l-top y11<slab: y14l:=min(y14r-eps,y11+tiny+slab); fi
  1140. x13=x14; y13=.5[y14l,y14r]; dot(13,14);  % dot
  1141. if serifs: sloped_serif.l(11,12,aa,1/3,1.1jut,serif_drop);  % upper serif
  1142.  pickup tiny.nib; pos15(vair,-90); pos16(hair,-180); pos17(flare,-180);
  1143.  x15=.5[x12,x16r]; bot y15r=-d-oo; y16-.5flare=-.88d;
  1144.  if monospace: lft x16r=.5w else: z16r=z17r; rt x17l=.5w+floor .75u fi;
  1145.  (x,y15r)=whatever[z15l,z12l]; x15r:=max(x,.5[x16r,x15]);
  1146.  filldraw stroke z12e{down}...z15e{left};  bulb(15,16,17); % arc and bulb
  1147. else: pickup fine.nib; pos12'(stem',0); z12'=z12;
  1148.  pos16(.2[vair,stem'],-90); pos17(vair,-90);
  1149.  lft x17r=hround .5w-.75u; bot y17r=vround 5/6(-d-oo);
  1150.  (x,y17l)=whatever[z17r,z13]; x17l:=x;
  1151.  z15r=z12'r; (x12'l,y15l)=whatever[z17l,z15r]; x15l=x12'l; y15=y15r;
  1152.  x16r=.5[x17r,x15r]; x16l:=.5[x17l,x15l]; bot y16r=-d-oo;
  1153.  filldraw stroke z12'e..{down}z15e & super_arc.e(15,16)
  1154.   & z16e{left}..z17e; fi  % arc and terminal
  1155. penlabels(1,2,3,4,5,6,11,12,13,14,15,16,17); endchar;
  1156.  
  1157.  
  1158. endinput;
  1159.  
  1160.  
  1161.  
  1162.